package com.wpml.ware.dao;

import com.wpml.ware.entity.WareSkuModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存 数据访问层
 * @author wangpei
 * @since 2020-04-07 12:34:53
 */
public interface WareSkuDao extends BaseMapper<WareSkuModel> {

    void addStock(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);

    Long getSkuStock(Long skuId);
}
